import { createStore } from 'vuex'

// 创建一个新的 store 实例
const store = createStore({
    state() {
        return {
            asideWidth: "200px"
        }
    },
    mutations: {
        //展开/缩起侧边
        HANDLE_ASIDE_WIDTH(state) {
            console.log("我进来了")
            state.asideWidth = state.asideWidth == "200px" ? "64px" : "200px"
            console.log(state.asideWidth)
        }
    }
})

export default store